﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="acti.ascx.cs" Inherits="eDream.admin.acti" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>

<div style="margin-top: 20px">
    <div style="margin-bottom: 20px; width: 170px; float: left">
        <dx:ASPxButton ID="btnDachon" runat="server" Text="Kích hoạt đã chọn" Theme="iOS" AutoPostBack="false" OnClick="btnDachon_Click">
           
        </dx:ASPxButton>
    </div>
    <div style="margin-bottom: 20px; width: 170px; float: left;">
        <dx:ASPxButton ID="btnTatca" runat="server" Text="Kích hoạt tất cả" Theme="iOS" AutoPostBack="false" OnClick="btnTatca_Click">
            
        </dx:ASPxButton>
    </div>
    <div class="Clear"></div>
    <dx:ASPxLabel ID="lbThongbao" runat="server" Text=""></dx:ASPxLabel>
                <div class="Clear"></div>
                <dx:ASPxGridView ID="grvpResult" runat="server" Theme="DevEx" Width="100%" AutoGenerateColumns="False"
                    KeyFieldName="ID" OnLoad="grvpResult_Load">
                    <Columns>
                        <dx:GridViewDataTextColumn Caption=" " Name="check" Width="10px" VisibleIndex="0">
                            <DataItemTemplate>
                                <dx:ASPxCheckBox ID="chkCheck" runat="server"></dx:ASPxCheckBox>
                                <asp:HiddenField ID="hdfUserID" runat="server" Value='<%#Eval("ID") %>' />

                            </DataItemTemplate>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="UserName" Caption="Tài khoản" VisibleIndex="0">
                            <CellStyle Wrap="True"></CellStyle>

                        </dx:GridViewDataTextColumn>

                        <dx:GridViewDataTextColumn FieldName="Lastname" Caption="Họ và chữ lót" VisibleIndex="1">
                            <CellStyle Wrap="True"></CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="FirtName" Caption="Tên" VisibleIndex="2">
                            <CellStyle Wrap="True"></CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="email" Caption="Email" VisibleIndex="3">
                            <CellStyle Wrap="True"></CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="phone" Caption="Phone" VisibleIndex="4">
                            <CellStyle Wrap="True"></CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="TuvanName" Caption="Người tư vấn" VisibleIndex="5">
                            <CellStyle Wrap="True"></CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="nguoigioithieu" Caption="Người giới thiệu" VisibleIndex="6">
                            <CellStyle Wrap="True"></CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataDateColumn FieldName="ngaythamgia" Caption="Ngày đăng ký" VisibleIndex="7">
                            <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy"></PropertiesDateEdit>
                        </dx:GridViewDataDateColumn>
                        <dx:GridViewDataTextColumn FieldName="gioitinh" Caption="Giới tính" VisibleIndex="8">
                        </dx:GridViewDataTextColumn>

                    </Columns>
                    <SettingsBehavior AllowSort="true" AllowFocusedRow="true" />
                    <Settings ShowFilterRow="true" />

                    <SettingsPager PageSizeItemSettings-ShowAllItem="true" Mode="ShowAllRecords"></SettingsPager>
                </dx:ASPxGridView>
    </div>
